﻿
using System;

namespace Sharp.Portal
{
    /// <summary>
    /// Class JavascriptAttribute.
    /// </summary>
    [AttributeUsage(AttributeTargets.Property)]
    public class JavascriptAttribute : System.Attribute
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="JavascriptAttribute"/> class.
        /// </summary>
        /// <param name="script">The script.</param>
        public JavascriptAttribute(string script)
        {
            this.Script = script;
        }

        /// <summary>
        /// Gets or sets the script.
        /// </summary>
        /// <value>The script.</value>
        public string Script { get; set; }
    }
}